package com.gxa.park.core.util;

/**
 * @author Min
 */
public class StringUtil {

    public static Boolean isEmpty(String value){
        if(value==null || "".equals(value)){
            return true;
        }
        return false;
    }

    public static Boolean isPhoneNumber(String phone){
        if(phone.matches("^1[3456789]\\d{9}$")){
            return  true;
        }
        return false;
    }

    public static Boolean isNumber(String value){
        if(value.matches("^[0-9]+$")){
            return  true;
        }
        return false;
    }
}
